home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / ucthesis / uct12.doc < prev    next >
Text File  |  1994-12-09  |  18KB  |  421 lines

  1. % UCTHESIS DOCUMENT STYLE -- Released 10 Feb 93.
  2. %    for LaTeX version 2.09
  3.  
  4.  
  5. %  ****************************************
  6. %  *               FONTS                  *
  7. %  ****************************************
  8. %
  9.  
  10. \lineskip 1pt            % \lineskip is 1pt for all font sizes.
  11. \normallineskip 1pt
  12. \def\baselinestretch{1.37}
  13.  
  14. % Each size-changing command \SIZE executes the command
  15. %        \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
  16. % where:
  17. %   BASELINESKIP = Normal value of \baselineskip for that size.  (Actual
  18. %                  value will be \baselinestretch * BASELINESKIP.)
  19. %
  20. %  \FONTSIZE     = Name of font-size command.  The currently available
  21. %                  (preloaded) font sizes are: \vpt (5pt), \vipt (6pt),
  22. %                  \viipt (etc.), \viiipt, \ixpt, \xpt, \xipt, \xiipt,
  23. %                  \xivpt, \xviipt, \xxpt, \xxvpt.
  24. %  \@FONTSIZE    = The same as the font-size command except with an
  25. %                  '@' in front---e.g., if \FONTSIZE = \xivpt then
  26. %                  \@FONTSIZE = \@xivpt.
  27. %
  28. % For reasons of efficiency that needn't concern the designer,
  29. % the document style defines \@normalsize instead of \normalsize.
  30. % This is done only for \normalsize, not for any other size-changing
  31. % commands.
  32.  
  33. \def\@normalsize{\@setsize\normalsize{14.5pt}\xiipt\@xiipt
  34. \abovedisplayskip 12\p@ plus3\p@ minus7\p@
  35. \belowdisplayskip \abovedisplayskip
  36. \abovedisplayshortskip  \z@ plus3\p@   
  37. \belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
  38. \let\@listi\@listI}   % Setting of \@listi added 9 Jun 87
  39.  
  40. \def\small{\@setsize\small{13.6pt}\xipt\@xipt
  41. \abovedisplayskip 11\p@ plus3\p@ minus6\p@
  42. \belowdisplayskip \abovedisplayskip
  43. \abovedisplayshortskip  \z@ plus3\p@   
  44. \belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
  45. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  46. \parsep 4.5\p@ plus2\p@ minus\p@
  47.             \itemsep \parsep
  48.             \topsep 9\p@ plus3\p@ minus5\p@}}
  49.  
  50. \def\footnotesize{\@setsize\footnotesize{12pt}\xpt\@xpt
  51. \abovedisplayskip 10\p@ plus2\p@ minus5\p@
  52. \belowdisplayskip \abovedisplayskip
  53. \abovedisplayshortskip  \z@ plus3\p@   
  54. \belowdisplayshortskip  6\p@ plus3\p@ minus3\p@
  55. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  56. \topsep 6\p@ plus2\p@ minus2\p@\parsep 3\p@ plus2\p@ minus\p@
  57. \itemsep \parsep}}
  58.  
  59. \def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
  60. \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
  61. \def\large{\@setsize\large{18pt}\xivpt\@xivpt}
  62. \def\Large{\@setsize\Large{22pt}\xviipt\@xviipt}
  63. \def\LARGE{\@setsize\LARGE{25pt}\xxpt\@xxpt}
  64. \def\huge{\@setsize\huge{30pt}\xxvpt\@xxvpt}
  65. \let\Huge=\huge
  66.  
  67. \normalsize  % Choose the normalsize font.
  68.  
  69.  
  70. %  ****************************************
  71. %  *            PAGE LAYOUT               *
  72. %  ****************************************
  73. %
  74. % All margin dimensions measured from a point one inch from top and side
  75. % of page.  
  76.  
  77. %% UCTHESIS style is not intended to be used two-sided because the
  78. %% University of California style requirements explicitly specify 
  79. %% single-sided printing.   So the two-sided settings are meaningless.
  80.  
  81. % SIDE MARGINS:
  82. \if@twoside               % Values for two-sided printing:
  83.    \oddsidemargin 0.5in   %   Left margin on odd-numbered pages.
  84.    \evensidemargin 0.0in  %   Left margin on even-numbered pages.
  85.    \marginparwidth 0pt    %   Width of marginal notes.
  86. \else                     % Values for one-sided printing:
  87.    \oddsidemargin 0.5in   %   Note that \oddsidemargin = \evensidemargin
  88.    \evensidemargin 0.5in
  89.    \marginparwidth 0pt
  90. \fi
  91. \marginparsep 10pt        % Horizontal space between outer margin and 
  92.                           % marginal note
  93.  
  94.  
  95. % VERTICAL SPACING:        
  96.                          % Top of page:
  97. \topmargin 0.0in         %    Nominal distance from top of page to top
  98.                          %    of box containing running head.
  99. \headheight 12pt         %    Height of box containing running head.
  100. \headsep 25pt            %    Space between running head and text.
  101. \topskip = 12pt          %    '\baselineskip' for first line of page.
  102.                          % Bottom of page:
  103. \footskip 30pt           %    Distance from baseline of box containing
  104.                          %    foot to baseline of last line of text.
  105.  
  106.  
  107. % DIMENSION OF TEXT:
  108. % 24 Jun 86: changed to explicitly compute \textheight to avoid
  109. % roundoff.  The value of the multiplier was calculated as the floor
  110. % of the old \textheight minus \topskip, divided by \baselineskip for
  111. % \normalsize.  The old value of \textheight was 536.5pt.  \textheight
  112. % is the height of text (including footnotes and figures, excluding
  113. % running head and foot).
  114.  
  115. \textheight = 30\baselineskip
  116. \advance\textheight by \topskip
  117. \textwidth 6.0truein     % Width of text line.
  118.                          % For two-column mode: 
  119. \columnsep 10pt          %    Space between columns 
  120. \columnseprule 0pt       %    Width of rule between columns.
  121.  
  122. % A \raggedbottom command causes 'ragged bottom' pages: pages set to
  123. % natural height instead of being stretched to exactly \textheight.
  124.  
  125. % FOOTNOTES:
  126.  
  127. \footnotesep 8.4pt    % Height of strut placed at the beginning of every
  128.                       % footnote = height of normal \footnotesize strut,
  129.                       % so no extra space between footnotes.
  130.  
  131. \skip\footins 10.8pt plus 4pt minus 2pt  % Space between last line of
  132.                                          % text and top of first
  133.                                          % footnote.
  134.  
  135. % FLOATS: (a float is something like a figure or table)
  136. %
  137. %  FOR FLOATS ON A TEXT PAGE:
  138. %
  139. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  140. \floatsep 14pt plus 2pt minus 4pt        % Space between adjacent floats
  141.                                          % moved to top or bottom of
  142.                                          % text page.
  143. \textfloatsep 20pt plus 2pt minus 4pt    % Space between main text and
  144.                                          % floats at top or bottom of
  145.                                          % page.
  146. \intextsep 14pt plus 4pt minus 4pt       % Space between in-text figures
  147.                                          % and text.
  148. \@maxsep 20pt                            % The maximum of \floatsep, 
  149.                                          % \textfloatsep and \intextsep
  150.                                          % (minus the stretch and
  151.                                          % shrink).
  152. %    TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
  153. \dblfloatsep 14pt plus 2pt minus 4pt     % Same as \floatsep for
  154.                                          % double-column figures in
  155.                                          % two-column mode.
  156. \dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for
  157.                                          % double-column floats.
  158. \@dblmaxsep 20pt                         % The maximum of \dblfloatsep
  159.                                          % and \dbltexfloatsep.
  160.  
  161. %  FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
  162. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  163. \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must
  164.                          % be 0pt plus ...)
  165. \@fpsep 10pt plus 2fil   % Space between floats on float page/column.
  166. \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column.
  167.                          % (Must be 0pt plus ... )
  168.  
  169. %   DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
  170. \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be
  171.                          % 0pt plus ...)
  172. \@dblfpsep 10pt plus 2fil% Space between floats on float page.
  173. \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
  174.                          % 0pt plus ... )
  175. % MARGINAL NOTES:
  176. %
  177. \marginparpush 7pt       % Minimum vertical separation between two
  178.                          % marginal notes.
  179.  
  180.  
  181. %  ****************************************
  182. %  *           PARAGRAPHING               *
  183. %  ****************************************
  184. %
  185. \parskip 0pt plus 1pt              % Extra vertical space between
  186.                                    % paragraphs.
  187. \parindent 1.5em                   % Width of paragraph indentation.
  188. %\topsep 10pt plus 4pt minus 6pt   % Extra vertical space, in addition
  189.                                    % to \parskip, added above and below
  190.                                    % list and paragraphing environments.
  191. \partopsep 3pt plus 2pt minus 2pt  % Extra vertical space, in addition
  192.                                    % to \parskip and \topsep, added when
  193.                                    % list leaves blank line before
  194.                                    % environment.
  195. %\itemsep 5pt plus 2.5pt minus 1pt % Extra vertical space, in addition
  196.                                    % to \parskip, added between list
  197.                                    % items.
  198. % See \@listI for values of \topsep and \itemsep
  199. % (Change made 9 Jun 87)
  200.  
  201. % The following page-breaking penalties are defined
  202.  
  203. \@lowpenalty   51      % Produced by \nopagebreak[1] or \nolinebreak[1]
  204. \@medpenalty  151      % Produced by \nopagebreak[2] or \nolinebreak[2]
  205. \@highpenalty 301      % Produced by \nopagebreak[3] or \nolinebreak[3]
  206.  
  207. \@beginparpenalty -\@lowpenalty    % Before a list or paragraph
  208.                                    % environment.
  209. \@endparpenalty   -\@lowpenalty    % After a list or paragraph
  210.                                    % environment.
  211. \@itempenalty     -\@lowpenalty    % Between list items.
  212.  
  213. % \clubpenalty         % 'Club line'  at bottom of page.
  214. % \widowpenalty        % 'Widow line' at top of page.
  215. % \displaywidowpenalty % Math display widow line.
  216. % \predisplaypenalty   % Breaking before a math display.
  217. % \postdisplaypenalty  % Breaking after a math display.
  218. % \interlinepenalty    % Breaking at a line within a paragraph.
  219. % \brokenpenalty       % Breaking after a hyphenated line.
  220.  
  221.  
  222. %    ****************************************
  223. %    *        CHAPTERS AND SECTIONS         *
  224. %    ****************************************
  225. %
  226. % Definition of \part moved to report.doc  19 Jan 88
  227.  
  228. % \@makechapterhead {TEXT} : Makes the heading for the \chapter
  229. % command.
  230. %
  231.  
  232. \def\@makechapterhead#1{%           % Heading for \chapter command
  233.   \vspace*{50\p@}%                  % Space at top of text page.
  234.   {\parindent \z@ \raggedright 
  235.     \ifnum \c@secnumdepth >\m@ne    % IF secnumdepth > -1 THEN
  236.       \huge\bf \@chapapp{} \thechapter %Print '\chaptername' and number.
  237.       \par 
  238.       \vskip 20\p@ \fi              % Space between number and title.
  239.     \Huge \bf                       % Title.
  240.     #1\par 
  241.     \nobreak                        % TeX penalty to prevent page break.
  242.     \vskip 40\p@                    % Space between title and text.
  243.   }}
  244.  
  245. % \@makeschapterhead {TEXT} : Makes the heading for the \chapter*
  246. % command.
  247. %
  248.  
  249. \def\@makeschapterhead#1{%          % Heading for \chapter* command
  250.   \vspace*{50\p@}%                  % Space at top of page.
  251.   {\parindent \z@ \raggedright 
  252.     \Huge \bf                       % Title.
  253.     #1\par 
  254.     \nobreak                        % TeX penalty to prevent page break.
  255.     \vskip 40\p@                    % Space between title and text.
  256.   }}
  257.  
  258. % \secdef{UNSTARCMDS}{STARCMDS} :
  259. %    When defining a \chapter or \section command without using
  260. %    \@startsection, you can use \secdef as follows:
  261. %       \def\chapter { ... \secdef \CMDA \CMDB }
  262. %       \def\CMDA    [#1]#2{ ...   % Command to define
  263. %                                  % \chapter[...]{...}
  264. %       \def\CMDB    #1{ ...       % Command to define
  265. %                                  % \chapter*{...}
  266.  
  267. \def\chapter{\clearpage      % Starts new page.
  268.    \thispagestyle{plain}%    % Page style of chapter page is 'plain'
  269.    \global\@topnum\z@      % Prevents figures from going at top of page.
  270.    \@afterindenttrue         % Suppresses indent in first paragraph.
  271.    \secdef\@chapter\@schapter}   % Change to \@afterindentfase for no indent.
  272.  
  273. \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
  274.         \refstepcounter{chapter}%
  275.         \typeout{\@chapapp\space\thechapter.}%
  276.         \addcontentsline{toc}{chapter}{\protect
  277.         \numberline{\thechapter}#1}\else
  278.       \addcontentsline{toc}{chapter}{#1}\fi
  279.    \chaptermark{#1}%
  280.    \addtocontents{lof}%
  281.        {\protect\addvspace{10\p@}}% Adds between-chapter space
  282.    \addtocontents{lot}%
  283.        {\protect\addvspace{10\p@}}% to lists of figs & tables.
  284.    \if@twocolumn                  % Tests for two-column mode.  
  285.            \@topnewpage[\@makechapterhead{#2}]%
  286.      \else \@makechapterhead{#2}%
  287.            \@afterheading         % Routine called after chapter and
  288.      \fi}                         % section heading.
  289.  
  290. \def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]%
  291.         \else \@makeschapterhead{#1}%
  292.               \@afterheading\fi}
  293.  
  294. % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} 
  295. %            optional * [ALTHEADING]{HEADING}
  296. %    Generic command to start a section.  
  297. %    NAME       : e.g., 'subsection'
  298. %    LEVEL      : a number, denoting depth of section -- e.g.,
  299. %                 chapter=1, section = 2, etc.  A section number will be
  300. %                 printed if and only if LEVEL < or = the value of the
  301. %                 secnumdepth counter.
  302. %    INDENT     : Indentation of heading from left margin
  303. %    BEFORESKIP : Absolute value = skip to leave above the heading.  
  304. %                 If negative, then paragraph indent of text following 
  305. %                 heading is suppressed.
  306. %    AFTERSKIP  : if positive, then skip to leave below heading,
  307. %                       else - skip to leave to right of run-in heading.
  308. %    STYLE      : commands to set style
  309. %  If '*' missing, then increments the counter.  If it is present, then
  310. %  there should be no [ALTHEADING] argument.  A sectioning command
  311. %  is normally defined to \@startsection + its first six arguments.
  312.  
  313. \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus-1ex minus
  314.     -.2ex}{2.3ex plus.2ex}{\reset@font\Large\bf}}
  315. \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus-1ex
  316.     minus-.2ex}{1.5ex plus.2ex}{\reset@font\large\bf}}
  317. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
  318.     -1ex minus-.2ex}{1.5ex plus.2ex}{\reset@font\normalsize\bf}}
  319. \def\paragraph{\@startsection
  320.     {paragraph}{4}{\z@}{3.25ex plus1ex minus.2ex}{-1em}{\reset@font
  321.     \normalsize\bf}}
  322. \def\subparagraph{\@startsection
  323.     {subparagraph}{4}{\parindent}{3.25ex plus1ex minus
  324.      .2ex}{-1em}{\reset@font\normalsize\bf}}
  325.  
  326. % Default initializations of \...mark commands.  (See below for their
  327. % us in defining page styles.
  328. %
  329.  
  330. \def\chaptermark#1{}
  331. % \def\sectionmark#1{}           % Preloaded definitions
  332. % \def\subsectionmark#1{}
  333. % \def\subsubsectionmark#1{}
  334. % \def\paragraphmark#1{}
  335. % \def\subparagraphmark#1{}
  336.  
  337. % The value of the counter secnumdepth gives the depth of the
  338. % highest-level sectioning command that is to produce section numbers.
  339. %
  340.  
  341. \setcounter{secnumdepth}{2}
  342.  
  343. % APPENDIX
  344. %
  345. % The \appendix command must do the following:
  346. %    -- reset the chapter counter to zero
  347. %    -- set \@chapapp to Appendix (for messages)
  348. %    -- redefine the chapter counter to produce appendix numbers
  349. %    -- reset the section counter to zero
  350. %    -- redefine the \chapter command if appendix titles and headings
  351. %       are to look different from chapter titles and headings.
  352.  
  353. \def\appendix{\par
  354.   \setcounter{chapter}{0}%
  355.   \setcounter{section}{0}%
  356.   \def\@chapapp{\appendixname}%
  357.   \def\thechapter{\Alph{chapter}}}
  358.  
  359.  
  360. %    ****************************************
  361. %    *                LISTS                 *
  362. %    ****************************************
  363. %
  364.  
  365. % The following commands are used to set the default values for the list
  366. % environment's parameters. See the LaTeX manual for an explanation of
  367. % the meanings of the parameters.  Defaults for the list environment are
  368. % set as follows.  First, \rightmargin, \listparindent and \itemindent
  369. % are set to 0pt.  Then, for a Kth level list, the command \@listK is
  370. % called, where 'K' denotes 'i', 'ii', ... , 'vi'.  (I.e., \@listiii is
  371. % called for a third-level list.)  By convention, \@listK should set
  372. % \leftmargin to \leftmarginK.
  373. %
  374. % For efficiency, level-one list's values are defined at top level, and
  375. % \@listi is defined to set only \leftmargin.
  376.  
  377. \leftmargini 2.5em
  378. \leftmarginii 2.2em     % > \labelsep + width of '(m)'
  379. \leftmarginiii 1.87em   % > \labelsep + width of 'vii.'
  380. \leftmarginiv 1.7em     % > \labelsep + width of 'M.'
  381. \leftmarginv 1em
  382. \leftmarginvi 1em
  383.  
  384. \leftmargin\leftmargini
  385. \labelsep .5em
  386. \labelwidth\leftmargini\advance\labelwidth-\labelsep
  387. %\parsep 5pt plus 2.5pt minus 1pt   %(Removed 9 Jun 87)
  388.  
  389. % \@listI defines top level and \@listi values of
  390. % \leftmargin, \topsep, \parsep, and \itemsep
  391. % (Added 9 Jun 87)
  392. \def\@listI{\leftmargin\leftmargini \parsep 5\p@ plus2.5\p@ minus\p@
  393. \topsep 10\p@ plus4\p@ minus6\p@
  394. \itemsep 5\p@ plus2.5\p@ minus\p@}
  395.  
  396. \let\@listi\@listI
  397. \@listi 
  398.  
  399. \def\@listii{\leftmargin\leftmarginii
  400.    \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  401.    \topsep 5\p@ plus2.5\p@ minus\p@
  402.    \parsep 2.5\p@ plus\p@ minus\p@
  403.    \itemsep \parsep}
  404.  
  405. \def\@listiii{\leftmargin\leftmarginiii
  406.     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  407.     \topsep 2.5\p@ plus\p@ minus\p@ 
  408.     \parsep \z@ \partopsep \p@ plus\z@ minus\p@
  409.     \itemsep \topsep}
  410.  
  411. \def\@listiv{\leftmargin\leftmarginiv
  412.      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  413.  
  414. \def\@listv{\leftmargin\leftmarginv
  415.      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  416.  
  417. \def\@listvi{\leftmargin\leftmarginvi
  418.      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  419.  
  420. \endinput
  421.